package com.googlecode.imule.apps;

import java.io.IOException;
import java.net.SocketException;

import com.apple.dnssd.DNSSDException;

public class LightX extends X {

	Light light;
	
	public LightX(String name) throws DNSSDException, IOException {
		super(name);
		light = new Light();
		light.paintBulb();
	}
	
	@Override
	public void setOn(boolean status) {
		System.out.println("ON?" + status);
		light.turnOn(status);
	}
	
	public static void main(String[] args) throws DNSSDException, IOException {
		LightX temp = new LightX("light");
	}
}
